Mastering the Nmap Scripting Engine by Paulino Calderón Pale

Mastering the Nmap Scripting Engine by Paulino Calderón Pale

Author:Paulino Calderón Pale
Language: eng
Format: mobi
Publisher: Packt Publishing
Published: 2015-02-17T22:00:00+00:00


If the login attempt wasn't successful, we return an instance of brute.Error:return false, brute.Error:new( "Incorrect password" ).

Our final class will look like this:Driver =

{

new = function(self, host, port, options )

local o = { host = host, port = port, options = options }

setmetatable(o, self)

self.__index = self

o.emptypass = true

return o

end,

connect = function( self )

self.s = nmap.new_socket("tcp")

self.s:set_timeout(self.options['timeout'])

return self.s:connect(self.host, self.port, "tcp")

end,



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.